export default{
	setAttr(state, playload){
		// state.detailList = playload
		// console.log(state.detailList)
		state.attrVal = playload.attrVal
		state.attrTxt = playload.attrTxt
		state.count = playload.count
	},
	// 离开详情页后清空状态机缓存
	defaultAttr(state){
		state.attrVal =[]
		state.attrTxt = '请选择商品规格尺寸'
	},
	login(state){
		state.isLogin = 1 // 登录时赋值为1
	},
	loginOut(state){
		// 退出登录 顺便清空token数据
		state.isLogin = 0 //退出时将isLogin赋值为0
		uni.setStorageSync('token', '') // 退出清空storage
	}
	
}